# CMakeList.txt: usage4chrono 的 CMake 项目，在此处包括源代码并定义
# discription:
#
cmake_minimum_required (VERSION 3.8)
project(usage4chrono)

#file(GLOB_RECURSE USAGE_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
#file(GLOB_RECURSE USAGE_SRC ${PROJECT_SOURCE_DIR}/*.cpp ${PROJECT_SOURCE_DIR}/*.c)

set(USAGE_SRC ./usage4chrono.cpp)

option(IS_WINDOWS OFF)
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
	set(IS_WINDOWS ON)
endif()

if (IS_WINDOWS)
    add_definitions(-D_WINDOWS)
endif()

# include_directories(
# 	${USAGE_INCLUDE_DIR}
# )

# add_library(${PROJECT_NAME} SHARED)
add_executable(${PROJECT_NAME} ${USAGE_SRC})

target_link_libraries(${PROJECT_NAME} pthread)
